package gov.chinatax.ctcps.generator.form;

import java.text.ParseException;
import java.text.SimpleDateFormat;

import javax.servlet.http.HttpServletRequest;

import org.apache.struts.action.ActionError;
import org.apache.struts.action.ActionErrors;
import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionMapping;

/**
 * Form for zfzbZfxm.
 *
 * @author <a href="http://boss.bekk.no/boss/middlegen/"/>Middlegen</a>
 *
 * @struts.form name="zfzbZfxmForm"
 */
public class ZfzbZfxmForm extends ActionForm {

	private final static SimpleDateFormat FORMAT = new SimpleDateFormat(
			"dd.MM.yyyy hh:mm:ss");

	private java.lang.String _xmbh = null;
	private java.lang.String _nd = null;
	private java.lang.String _zfxmbm = null;
	private java.lang.String _zfxmmc = null;
	private java.lang.String _jjxmBz = null;
	private java.lang.String _jjxmbm = null;
	private java.lang.String _qjxmBz = null;
	private java.lang.String _yszbbh = null;
	private java.lang.String _sjzgdwbh = null;
	private java.lang.String _dyjbr = null;
	private java.lang.String _dyjbrDh = null;
	private java.lang.String _dejbr = null;
	private java.lang.String _dejbrDh = null;
	private java.math.BigDecimal _sqje = null;
	private java.math.BigDecimal _zfje = null;
	private java.lang.String _nrzjzfrq = null;
	private java.lang.String _dwbh = null;
	private java.lang.String _zt1 = null;
	private java.lang.String _zt2 = null;
	private java.lang.String _ysxmBm = null;
	private java.lang.String _ysxmMc = null;
	private java.lang.String ysxmLbm = null;
	private java.lang.String ysxmLmc = null;
	private java.lang.String _xmlx = null;
	private java.math.BigDecimal _zjbl = null;
	private java.math.BigDecimal _zjje = null;

	/**
	 * Standard constructor.
	 */
	public ZfzbZfxmForm() {
	}

	public java.lang.String getYsxmLbm() {
		return ysxmLbm;
	}

	public void setYsxmLbm(java.lang.String ysxmLbm) {
		this.ysxmLbm = ysxmLbm;
	}

	public java.lang.String getYsxmLmc() {
		return ysxmLmc;
	}

	public void setYsxmLmc(java.lang.String ysxmLmc) {
		this.ysxmLmc = ysxmLmc;
	}

	/**
	 * Returns the xmbh
	 *
	 * @return the xmbh
	 */
	public java.lang.String getXmbh() {
		return _xmbh;
	}

	/**
	 * Sets the xmbh
	 *
	 * @param xmbh the new xmbh value
	 */
	public void setXmbh(java.lang.String xmbh) {
		_xmbh = xmbh;
	}

	/**
	 * Returns the nd
	 *
	 * @return the nd
	 */
	public java.lang.String getNd() {
		return _nd;
	}

	/**
	 * Sets the nd
	 *
	 * @param nd the new nd value
	 */
	public void setNd(java.lang.String nd) {
		_nd = nd;
	}

	/**
	 * Returns the zfxmbm
	 *
	 * @return the zfxmbm
	 */
	public java.lang.String getZfxmbm() {
		return _zfxmbm;
	}

	/**
	 * Sets the zfxmbm
	 *
	 * @param zfxmbm the new zfxmbm value
	 */
	public void setZfxmbm(java.lang.String zfxmbm) {
		_zfxmbm = zfxmbm;
	}

	/**
	 * Returns the zfxmmc
	 *
	 * @return the zfxmmc
	 */
	public java.lang.String getZfxmmc() {
		return _zfxmmc;
	}

	/**
	 * Sets the zfxmmc
	 *
	 * @param zfxmmc the new zfxmmc value
	 */
	public void setZfxmmc(java.lang.String zfxmmc) {
		_zfxmmc = zfxmmc;
	}

	/**
	 * Returns the jjxmBz
	 *
	 * @return the jjxmBz
	 */
	public java.lang.String getJjxmBz() {
		return _jjxmBz;
	}

	/**
	 * Sets the jjxmBz
	 *
	 * @param jjxmBz the new jjxmBz value
	 */
	public void setJjxmBz(java.lang.String jjxmBz) {
		_jjxmBz = jjxmBz;
	}

	/**
	 * Returns the jjxmbm
	 *
	 * @return the jjxmbm
	 */
	public java.lang.String getJjxmbm() {
		return _jjxmbm;
	}

	/**
	 * Sets the jjxmbm
	 *
	 * @param jjxmbm the new jjxmbm value
	 */
	public void setJjxmbm(java.lang.String jjxmbm) {
		_jjxmbm = jjxmbm;
	}

	/**
	 * Returns the qjxmBz
	 *
	 * @return the qjxmBz
	 */
	public java.lang.String getQjxmBz() {
		return _qjxmBz;
	}

	/**
	 * Sets the qjxmBz
	 *
	 * @param qjxmBz the new qjxmBz value
	 */
	public void setQjxmBz(java.lang.String qjxmBz) {
		_qjxmBz = qjxmBz;
	}

	/**
	 * Returns the yszbbh
	 *
	 * @return the yszbbh
	 */
	public java.lang.String getYszbbh() {
		return _yszbbh;
	}

	/**
	 * Sets the yszbbh
	 *
	 * @param yszbbh the new yszbbh value
	 */
	public void setYszbbh(java.lang.String yszbbh) {
		_yszbbh = yszbbh;
	}

	/**
	 * Returns the sjzgdwbh
	 *
	 * @return the sjzgdwbh
	 */
	public java.lang.String getSjzgdwbh() {
		return _sjzgdwbh;
	}

	/**
	 * Sets the sjzgdwbh
	 *
	 * @param sjzgdwbh the new sjzgdwbh value
	 */
	public void setSjzgdwbh(java.lang.String sjzgdwbh) {
		_sjzgdwbh = sjzgdwbh;
	}

	/**
	 * Returns the dyjbr
	 *
	 * @return the dyjbr
	 */
	public java.lang.String getDyjbr() {
		return _dyjbr;
	}

	/**
	 * Sets the dyjbr
	 *
	 * @param dyjbr the new dyjbr value
	 */
	public void setDyjbr(java.lang.String dyjbr) {
		_dyjbr = dyjbr;
	}

	/**
	 * Returns the dyjbrDh
	 *
	 * @return the dyjbrDh
	 */
	public java.lang.String getDyjbrDh() {
		return _dyjbrDh;
	}

	/**
	 * Sets the dyjbrDh
	 *
	 * @param dyjbrDh the new dyjbrDh value
	 */
	public void setDyjbrDh(java.lang.String dyjbrDh) {
		_dyjbrDh = dyjbrDh;
	}

	/**
	 * Returns the dejbr
	 *
	 * @return the dejbr
	 */
	public java.lang.String getDejbr() {
		return _dejbr;
	}

	/**
	 * Sets the dejbr
	 *
	 * @param dejbr the new dejbr value
	 */
	public void setDejbr(java.lang.String dejbr) {
		_dejbr = dejbr;
	}

	/**
	 * Returns the dejbrDh
	 *
	 * @return the dejbrDh
	 */
	public java.lang.String getDejbrDh() {
		return _dejbrDh;
	}

	/**
	 * Sets the dejbrDh
	 *
	 * @param dejbrDh the new dejbrDh value
	 */
	public void setDejbrDh(java.lang.String dejbrDh) {
		_dejbrDh = dejbrDh;
	}

	/**
	 * Returns the sqje
	 *
	 * @return the sqje
	 */
	public java.math.BigDecimal getSqje() {
		return _sqje;
	}

	/**
	 * Sets the sqje
	 *
	 * @param sqje the new sqje value
	 */
	public void setSqje(java.math.BigDecimal sqje) {
		_sqje = sqje;
	}

	/**
	 * Returns the zfje
	 *
	 * @return the zfje
	 */
	public java.math.BigDecimal getZfje() {
		return _zfje;
	}

	/**
	 * Sets the zfje
	 *
	 * @param zfje the new zfje value
	 */
	public void setZfje(java.math.BigDecimal zfje) {
		_zfje = zfje;
	}

	/**
	 * Returns the nrzjzfrq
	 *
	 * @return the nrzjzfrq
	 */
	public java.lang.String getNrzjzfrq() {
		return _nrzjzfrq;
	}

	/**
	 * Sets the nrzjzfrq
	 *
	 * @param nrzjzfrq the new nrzjzfrq value
	 */
	public void setNrzjzfrq(java.lang.String nrzjzfrq) {
		_nrzjzfrq = nrzjzfrq;
	}

	/**
	 * Returns the dwbh
	 *
	 * @return the dwbh
	 */
	public java.lang.String getDwbh() {
		return _dwbh;
	}

	/**
	 * Sets the dwbh
	 *
	 * @param dwbh the new dwbh value
	 */
	public void setDwbh(java.lang.String dwbh) {
		_dwbh = dwbh;
	}

	/**
	 * Returns the zt1
	 *
	 * @return the zt1
	 */
	public java.lang.String getZt1() {
		return _zt1;
	}

	/**
	 * Sets the zt1
	 *
	 * @param zt1 the new zt1 value
	 */
	public void setZt1(java.lang.String zt1) {
		_zt1 = zt1;
	}

	/**
	 * Returns the zt2
	 *
	 * @return the zt2
	 */
	public java.lang.String getZt2() {
		return _zt2;
	}

	/**
	 * Sets the zt2
	 *
	 * @param zt2 the new zt2 value
	 */
	public void setZt2(java.lang.String zt2) {
		_zt2 = zt2;
	}

	/**
	 * Returns the ysxmBm
	 *
	 * @return the ysxmBm
	 */
	public java.lang.String getYsxmBm() {
		return _ysxmBm;
	}

	/**
	 * Sets the ysxmBm
	 *
	 * @param ysxmBm the new ysxmBm value
	 */
	public void setYsxmBm(java.lang.String ysxmBm) {
		_ysxmBm = ysxmBm;
	}

	/**
	 * Returns the ysxmMc
	 *
	 * @return the ysxmMc
	 */
	public java.lang.String getYsxmMc() {
		return _ysxmMc;
	}

	/**
	 * Sets the ysxmMc
	 *
	 * @param ysxmMc the new ysxmMc value
	 */
	public void setYsxmMc(java.lang.String ysxmMc) {
		_ysxmMc = ysxmMc;
	}

	/**
	 * Returns the xmlx
	 *
	 * @return the xmlx
	 */
	public java.lang.String getXmlx() {
		return _xmlx;
	}

	/**
	 * Sets the xmlx
	 *
	 * @param xmlx the new xmlx value
	 */
	public void setXmlx(java.lang.String xmlx) {
		_xmlx = xmlx;
	}

	/**
	 * Returns the zjbl
	 *
	 * @return the zjbl
	 */
	public java.math.BigDecimal getZjbl() {
		return _zjbl;
	}

	/**
	 * Sets the zjbl
	 *
	 * @param zjbl the new zjbl value
	 */
	public void setZjbl(java.math.BigDecimal zjbl) {
		_zjbl = zjbl;
	}
	

	public java.math.BigDecimal getZjje() {
		return _zjje;
	}

	public void setZjje(java.math.BigDecimal zjje) {
		this._zjje = zjje;
	}

	/**
	 * Validate the properties that have been set from this HTTP request,
	 * and return an <code>ActionErrors</code> object that encapsulates any
	 * validation errors that have been found.  If no errors are found, return
	 * <code>null</code> or an <code>ActionErrors</code> object with no
	 * recorded error messages.
	 *
	 * @param mapping The mapping used to select this instance
	 * @param request The servlet request we are processing
	 */
	public ActionErrors validate(ActionMapping mapping,
			HttpServletRequest request) {
		ActionErrors errors = new ActionErrors();
		// test for nullity
		if (getXmbh() == null) {
			errors.add("xmbh", new ActionError("error.xmbh.required"));
		}
		if (getNd() == null) {
			errors.add("nd", new ActionError("error.nd.required"));
		}
		if (getJjxmBz() == null) {
			errors.add("jjxmBz", new ActionError("error.jjxmBz.required"));
		}
		if (getQjxmBz() == null) {
			errors.add("qjxmBz", new ActionError("error.qjxmBz.required"));
		}
		if (getSjzgdwbh() == null) {
			errors.add("sjzgdwbh", new ActionError("error.sjzgdwbh.required"));
		}
		if (getSqje() == null) {
			errors.add("sqje", new ActionError("error.sqje.required"));
		}
		if (getZfje() == null) {
			errors.add("zfje", new ActionError("error.zfje.required"));
		}
		if (getDwbh() == null) {
			errors.add("dwbh", new ActionError("error.dwbh.required"));
		}
		// TODO test format/data
		return errors;
	}
}
